import request from '@/utils/request'

// 查询校区列表列表
export function listCampusInfo(query) {
  return request({
    url: '/campus/campusInfo/list',
    method: 'get',
    params: query
  })
}

// 查询校区列表详细
export function getCampusInfo(campusId) {
  return request({
    url: '/campus/campusInfo/' + campusId,
    method: 'get'
  })
}

// 新增校区列表
export function addCampusInfo(data) {
  return request({
    url: '/campus/campusInfo',
    method: 'post',
    data: data
  })
}

// 修改校区列表
export function updateCampusInfo(data) {
  return request({
    url: '/campus/campusInfo',
    method: 'put',
    data: data
  })
}

// 删除校区列表
export function delCampusInfo(campusId) {
  return request({
    url: '/campus/campusInfo/' + campusId,
    method: 'delete'
  })
}

export function headmasterList(data) {
  return request({
    url: '/campus/campusInfo/headmasterList',
    method: 'get',
    params: data
  })
}
